package data;


public class Author extends User
{

	
	
	/**
	 * 作session存attribute时用的name
	 * */
	public enum Attribute
	{
		PEN_NAME;
		
		public String getFullName()
		{
			return this.getDeclaringClass().getName() + "." + this.name();
		}
	}
	
	
	private String pen_name;
	private int fans = 0;
	private int count_works = 0;
	private int count_books = 0;
	
	
	public Author(User user, String pen_name)
	{
		super(user.id, user.username, user.password);
		this.setPenName(pen_name);
	}
	
	public void setPenName(String pen_name) { this.pen_name = pen_name; }
	public void setFans(int fans) { this.fans = fans; }
	public void setWorksCount(int count_works) { this.count_works = count_works; }
	public void setBooksCount(int count_book) { this.count_books = count_book; }
	
	public String getPenName() { return this.pen_name; }
	public int getFans() { return this.fans; }
	public int getWorksCount() { return this.count_works; }
	public int getBooksCount() { return this.count_books; }
	
}













